package com.cqie.ssm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cqie.ssm.bean.Student;
import com.cqie.ssm.bean.StudentExample;
import com.cqie.ssm.dao.StudentMapper;
import com.cqie.ssm.service.StudentService;

@Service("studentService")
public class StudentServiceImpl implements StudentService {
	
	@Autowired(required = false)
    StudentMapper studentMapper;
	
	@Override
	public List<Student> selectByExample(StudentExample example) {
		return studentMapper.selectByExample(example);
	}

	@Override
	public void addStudent(Student student) {
		studentMapper.insert(student);		
	}

}
